package com.it.base.core.system.dept.model.from;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysDeptValidatorFormDTO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(name = "id", value = "主键", dataType = "String")
	private String id;

	@ApiModelProperty(name = "value", value = "父id", dataType = "String", required = true)
	@NotNull(message = "父id")
	@NotBlank(message = "父id")
	private String parentId;

	@ApiModelProperty(name = "value", value = "部门名称", dataType = "String", required = true)
	@NotNull(message = "部门名称")
	@NotBlank(message = "部门名称")
	private String deptName;
}
